home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
M-Md
/
MacWedding.cpt
/
MacWedding Install
/
card_3631.txt
< prev
next >
Wrap
Text File
|
1992-07-20
|
11KB
|
413 lines
-- card: 3631 from stack: in
-- bmap block id: 2930
-- flags: 0000
-- background id: 2740
-- name: Start
-- part 2 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=460 top=37 right=62 bottom=486
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect iris close
go Home
end mouseUp
-- part 11 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=102 top=70 right=215 bottom=364
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 21
-- text size: 10
-- style flags: 256
-- line height: 13
-- part name:
-- part 27 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=65 top=225 right=243 bottom=182
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name:
-- part 28 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=65 top=249 right=266 bottom=182
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name:
-- part 29 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=66 top=272 right=289 bottom=182
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name:
-- part 31 (field)
-- low flags: 03
-- high flags: 4000
-- rect: left=215 top=225 right=243 bottom=360
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 256
-- line height: 13
-- part name: Bride
-- part 32 (field)
-- low flags: 03
-- high flags: 4000
-- rect: left=215 top=249 right=266 bottom=360
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 256
-- line height: 13
-- part name: Groom
-- part 33 (field)
-- low flags: 03
-- high flags: 4000
-- rect: left=215 top=272 right=289 bottom=360
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 256
-- line height: 13
-- part name: WeddingDate
-- part 34 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=379 top=86 right=142 bottom=445
-- title width / last selected line: 0
-- icon id / first selected line: 1028 / 1028
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: MacWedding
----- HyperTalk script -----
on mouseUp
if the version > 1.9 and cd fld 8 = 1 then
doMenu "Convert Stack..." without dialog
put the script of btn 5 into tempScript5
put 0 into cd fld 8
lock screen
show cd fld 9
unlock screen with dissolve
push cd
lock screen
go home
go cd Stacks
get number of lines of fld Paths
add 1 to it
put ":MacWedding‚Ñ¢:HomeChurch" into line it of fld Paths
global priorLevel
get the userLevel
put it into priorLevel
if it < 5 then set the userLevel to 5
go stack :MacWedding‚Ñ¢:HomeChurch
doMenu "Convert Stack..." without dialog
go stack GuestCards
doMenu "Convert Stack..." without dialog
go last cd
set the script of bkgnd btn "SORT" to tempScript5
global priorLevel
set the userLevel to priorLevel
pop cd
hide cd fld 9
unlock screen with dissolve
end if
if cd fld Bride is empty then
beep
ask "Please enter Bride's Name." with "e.g. Mary Smith, etc."
if it is empty then exit mouseUp
if it is "e.g. Mary Smith, etc." then
beep
answer "You didn't enter the Bride's name!" with "Oops"
ask "Please enter Bride's Name." with "e.g. Mary Smith, etc."
end if
put it into cd fld 5
end if
if cd fld Groom is empty then
beep
ask "Please enter Groom's Name." with "e.g. John Jones, etc."
if it is empty then exit mouseUp
if it is "e.g. John Jones, etc." then
beep
answer "You didn't enter the Groom's name!" with "Oops"
ask "Please enter Groom's Name." with "e.g. Mary Smith, etc."
end if
put it into cd fld 6
end if
if cd fld WeddingDate is empty then
beep
ask "Please enter Wedding Date." with "e.g. 7/15/92, etc."
if it is empty then exit mouseUp
if it is "e.g. 7/15/92, etc." then
beep
answer "You didn't enter a date!" with "Oops"
ask "Please enter Wedding Date." with "e.g. 7/15/92, etc."
end if
put it into cd fld 7
end if
answer "Are you sure the names are spelled right?" with "Yes" or "No"
if it is "No" then
put empty into cd fld 5
put empty into cd fld 6
exit mouseUp
end if
answer "Install a linked button in your home card?" with "Yes" or "Cancel"
if it = "Cancel" then exit mouseUp
select me
doMenu "Copy Button"
hide me
lock screen
put cd fld Bride into Bride
put cd fld Groom into Groom
put cd fld WeddingDate into WeddingDate
convert WeddingDate to abbreviated date
set lockText of cd fld 5 to true
set lockText of cd fld 6 to true
set lockText of cd fld 7 to true
push card
go home
repeat with n = 1 to number of cd btns
if short name of cd btn n = "MacWedding" then
choose browse tool
pop card
unlock screen
answer "You had already installed this button!"
exit mouseUp
end if
end repeat
if the version < 2.0 then
go cd Stacks
get number of lines of fld Paths
add 1 to it
put ":MacWedding‚Ñ¢:HomeChurch" into line it of fld Paths
go home
end if
doMenu "Paste Button"
put number of cd btns into holder
put id of cd btn holder into butID
set rect of cd btn id butID to 233,148,290,198
set style of cd btn id butID to transparent
set name of cd btn id butID to "MacWedding"
set script of cd btn id butID to "on mouseUp" & return && "visual effect iris open to gray" & return && "visual effect iris open" & return && "if the shiftkey is down then" & return && "go to stack" & quote & ":MacWedding‚Ñ¢:HomeChurch" & quote & return && "exit mouseUp" & return && "end if" & return && "go to cd 2 of stack" & quote & ":MacWedding‚Ñ¢:HomeChurch" & quote & return && "end mouseUp"
choose browse tool
get the location of cd btn MacWedding
click at it
go previous
hide cd fld Demo
put Groom into line 3 of cd fld Couple
put "and" into line 5 of cd fld Couple
put Bride into line 7 of cd fld Couple
put WeddingDate into cd fld Date
put WeddingDate into bkgnd fld Check
put cd fld Date into startDate
go Home
select cd btn MacWedding
unlock screen with dissolve
answer "Position button, then press it to return."
put "Position btn: “MacWedding™” as desired, then press Cmd-Tab, Cmd-M!"
end mouseUp
-- part 41 (button)
-- low flags: 80
-- high flags: A000
-- rect: left=25 top=290 right=311 bottom=67
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 9
-- style flags: 8192
-- line height: 12
-- part name: SORT3
----- HyperTalk script -----
on mouseUp
answer "Sort all cards in this stack by ..." with "Name" or "Category" or "Cancel"
if it is "Cancel" then exit mouseUp
set cursor to watch
lock screen
if it is "Name" then sort cds of bkgnd VendorCard by fld VendorName
if it is "Category" then sort cds of bkgnd VendorCard by fld Category
go cd 2 of bkgnd VendorCard
unlock screen with venetian blinds to gray
set cursor to browse
beep
end mouseUp
-- part 42 (button)
-- low flags: 80
-- high flags: A000
-- rect: left=66 top=290 right=311 bottom=108
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 9
-- style flags: 8192
-- line height: 12
-- part name: SORT4
----- HyperTalk script -----
on mouseUp
answer "Sort all cards in this stack by ..." with "Due Date" or "Resp. Party" or "Alphabetical"
if it is "Cancel" then exit mouseUp
set cursor to watch
lock screen
if it is "Due Date" then sort cds of bkgnd CheckListCard dateTime by fld DueDate
if it is "Resp. Party" then sort cds of bkgnd CheckListCard by fld ResParty
if it is "Alphabetical" then sort cds of bkgnd CheckListCard by fld Task
go cd 2 of bkgnd CheckListCard
unlock screen with dissolve
set cursor to browse
beep
end mouseUp
-- part 43 (button)
-- low flags: 80
-- high flags: A000
-- rect: left=107 top=290 right=311 bottom=149
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 9
-- style flags: 8192
-- line height: 12
-- part name: SORT5
----- HyperTalk script -----
on mouseUp
answer "Sort all cards in this stack by ..." with "Table No." or "Resp. Party" or "Last Name"
if it is "Cancel" then exit mouseUp
set cursor to watch
lock screen
if it is "Last Name" then sort cds of bkgnd GuestCard by fld LastName
if it is "Resp. Party" then sort cds of bkgnd GuestCard by fld RespParty
if it is "Table No." then sort cds of bkgnd GuestCard by fld RespParty
go cd 2 of bkgnd GuestCard
unlock screen
set cursor to browse
beep
end mouseUp
-- part 44 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=464 top=302 right=319 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 47 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=144 top=113 right=170 bottom=315
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 12
-- style flags: 256
-- line height: 16
-- part name:
-- part contents for background part 6
----- text -----
MacWedding‚Ñ¢ Registration Demo
-- part contents for card part 27
----- text -----
Bride's Name:
-- part contents for card part 28
----- text -----
Groom's Name:
-- part contents for card part 29
----- text -----
Wedding Date:
-- part contents for card part 11
----- text -----
To install MacWedding and add a linked button to your HOME Card place the cursor over the MacWedding button and click. --------->
Position the HOME Card button as instructed. Then follow the directions in the lower dialog box, appearing on that card.
In the future you can enter MacWedding directly from your HOME Card.
-- part contents for card part 44
----- text -----
1
-- part contents for card part 47
----- text -----
Please stand by!
Program converting to H.C. 2 configuration.